﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ScratchNet.runtime.EDS2010IOControl
{
    public class EDS2010GetReadyEXpression : Expression
    {
        public override string ReturnType => "any";

        public EDS2010GetReadyEXpression()
        {

        }

        protected override Completion ExecuteImpl(ExecutionEnvironment enviroment)
        {
            return new Completion(true, GetConvertStr()); ;
        }
        public override Descriptor Descriptor
        {
            get
            {
                Descriptor desc = new Descriptor();
                desc.Add(new TextItemDescriptor(this, "EDS2010 获取是否准备就绪"));

                return desc;
            }
        }

        public override string Type
        {
            get { return "EDS2010GetReadyEXpression"; }
        }

        private string GetConvertStr()
        {
            //调接口
            return ($"EDS2010GetReadyEXpression.GetConvertStr()");
        }
    }
}
